package com.huhao.wshare.dto;

import lombok.Data;
import lombok.AllArgsConstructor;

@Data
@AllArgsConstructor
public class JwtResponse {
    private String token;
    private String type = "Bearer";
    private Long id;
    private String username;
    private String email;
    private String account;

    // 构造函数，方便创建对象
    public JwtResponse(String accessToken, Long id, String username, String email, String account) {
        this.token = accessToken;
        this.id = id;
        this.username = username;
        this.email = email;
        this.account = account;
    }
}
